import {Component} from "@angular/core";
import {NgbModule} from "@ng-bootstrap/ng-bootstrap";
@Component({
    selector: "myapp",
    template: `
    <H1>{{title}}</H1><h2>{{hero}}{{myHero.id}}</h2>
     <ngb-alert [dismissible]="false" [type]="type">
        <strong>Warning!</strong> Better check yourself, you're not looking too good.
    </ngb-alert>
    `
})
export class AppComponent {
    title = "Tour of Heroes";
    hero = "windstorm";
    myHero: Hero = {
        id: 18,
        name: "张三"
    }
}
export class Hero {
    id: number;
    name: string;
}